package com.youlai.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.system.model.query.ProductPageQuery;
import com.youlai.system.model.vo.ProductPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author zzps
* @description 针对表【t_product(商品表)】的数据库操作Mapper
* @createDate 2024-03-11 22:24:49
* @Entity com.youlai.system.model.entity.Product
*/
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    IPage<ProductPageVo> getProductPageList(Page<ProductPageVo> page, @Param("query") ProductPageQuery productPageQuery);

    ProductPageVo getProductById(Long id);
}




